﻿@using Batman.Cms.Domains;
@model Abp.Application.Services.Dto.PagedResultDto<OpenAccount>;
@{
    ViewBag.JsUrl = "/cms/js/weixin-mp-account-index.js";
    ViewBag.Title = "微信公众号资料列表";
}
<div class="panel panel-default">
    <div class="panel-heading clearfix">
        <div class="pull-left">微信公众号资料列表</div>
        <div class="pull-right">
            <a href="/cms/weixinMpAccount/create">
                <i class="el-icon-plus"></i>
                <span>新建微信公众号资料</span>
            </a>
        </div>
    </div>
    <div class="panel-body">
        <div id="weixin-mp-account-index">
            <table class="table table-bordered ">
                <thead>
                    <tr>
                        <th></th>
                        <th>资料名称</th>
                        <th>AppId</th>
                        <th>秘钥</th>
                        <th>微信服务号</th>
                        <th>状态</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.Items)
                    {
                        <tr>
                            <td></td>
                            <td>@item.Name</td>
                            <td>@item.AppId</td>
                            <td>@item.Secret</td>
                            <td>@item.ServiceNo</td>
                            <td>@item.StatusName</td>
                            <td>
                                <a href="/cms/weixinMpAccount/update/@item.Id">编辑</a>
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            <script>var total = @Model.TotalCount </script>
            <common-pagination v-model="page" :total="total" @@change="load"></common-pagination>
        </div>
    </div>
    <div class="panel-footer clearfix">
        <div class="pull-right">
            <a href="/cms/weixinMpAccount/create">
                <i class="el-icon-plus"></i>
                <span>新建微信公众号资料</span>
            </a>
        </div>
    </div>
</div>